package game;
import fields.*;

public class Gameboard {
	
	private Field[] feltliste;
	public Gameboard()
	{
	
	 feltliste     = new Field[40];
	 feltliste[0] = new Refuge(0, "Start", 200);
	 feltliste[1] = new Territory  (1, "Rodovrevej", 60, 2);
	 feltliste[2] = new Chance (2, "Chance1");
	 feltliste[3] = new Territory (3, "Hvidovrevej", 60, 4);
	 feltliste[4] = new Tax (4, "Indkomstskat",200);
	 feltliste[5] = new Fleet (5, "Oresund", 200);
	 feltliste[6] = new Territory (6, "Roskildevej",100, 6);
	 feltliste[7] = new Chance (7,"Chance2") ;
	 feltliste[8] = new Territory (8, "Valby Langgade",100, 6);
	 feltliste[9] = new Territory (9, "Allegade", 120, 8);
	 feltliste[10] = new Refuge (10, "Faengsel",-50);
	 feltliste[11] = new Territory (11, "Frederiksberggade",140, 10);
	 feltliste[12] = new LaborCamp (12, "Tuborg", 150);
	 feltliste[13] = new Territory (13, "Bullowsvej",140, 10);
	 feltliste[14] = new Territory (14, "Gammel Kongevej",160, 12);
	 feltliste[15] = new Fleet (15, "DFDS",200);
	 feltliste[16] = new Territory (16, "Bernstorffsvej", 180, 14);
	 feltliste[17] = new Chance (17,"Chance3");
	 feltliste[18] = new Territory (18, "Hellerupvej",180, 4);
	 feltliste[19] = new Territory (19, "Strandvejen", 200, 16);
	 feltliste[20] = new Refuge (20,"Helle", 0);
	 feltliste[21] = new Territory (21, "Trianglen", 220, 18);
	 feltliste[22] = new Chance (22, "Chance4"); 
	 feltliste[23] = new Territory (23, "Osterbrogade",220, 18);
	 feltliste[24] = new Territory (24, "Gronningen", 240, 20);
	 feltliste[25] = new Fleet (25, "OS", 200);
	 feltliste[26] = new Territory (26, "Bredgade", 260, 22);
	 feltliste[27] = new Territory (27, "Kongens Nytorv", 260,22);
	 feltliste[28] = new LaborCamp (28, "Carlsberg", 150);
	 feltliste[29] = new Territory (29, "Ostergade", 280, 24);
	 feltliste[30] = new Jail (30, "Ga i Faengsel",0);
	 feltliste[31] = new Territory (31, "AmagerTorv", 300,26);
	 feltliste[32] = new Territory (32, "Vimmelskaftet", 300,26);
	 feltliste[33] = new Chance (33,"Chance5"); 
	 feltliste[34] = new Territory (34, "Nygade", 320, 28);
	 feltliste[35] = new Fleet (35, "Bornholm", 200);
	 feltliste[36] = new Chance (36, "Chance6");
	 feltliste[37] = new Territory (37, "Frederiksberggade", 350, 35);
	 feltliste[38] = new Tax (38, "Ekstraskat", 100);
	 feltliste[39] = new Territory (39, "Radhuspladsen", 400, 50);
	 
	}
	
	public String toString()
	{
		String str="";
		for (int i=0; i<feltliste.length; i++)
		{
			str+=feltliste[i].toString();
			str+="\n";
		}
		return str;
	}
	 
	public Field getField(int field)
	{
		return feltliste[field-1];
	}
	
//	public Field setField ()
//	
//	{ return feltliste[] ;
//	}
	
}
	
	 
